package com.team.ai.service;

import com.team.ai.entity.ResultEntity;
import com.team.ai.mapper.AiVideoMapper;
import com.team.ai.mapper.StuBookMapper;
import jakarta.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class StuBookService {
    @Resource
    StuBookMapper stuBookMapper;
    public String selectList(){
        try{
            return ResultEntity.success(stuBookMapper.selectList()) ;
        }catch (Exception e){
            e.printStackTrace();

            return  ResultEntity.fail(-10005);
        }
    }
    public String selectDetail(int id){
        try{
            return ResultEntity.success(stuBookMapper.selectDetail(id)) ;
        }catch (Exception e){
            e.printStackTrace();

            return  ResultEntity.fail(-10005);
        }
    }
}
